package com.etc.dao;

import com.etc.entity.Business;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 *business的业务逻辑类
 */
@Repository
public interface IBusinessDao {


	/**
	 *查询所有的business列表
	 */
public List<Business> queryAllBusiness();


	/**
	 *返回指定page页的business列表
	 */
public List<Business> queryBusiness(int page);


	/**
	 *根据指定id获取business类
	 */
public Business queryBusiness3(int id);


	/**
	 *获取所有的business类
	 */
public int getAll();


	/**
	 *修改business类
	 */
public int updateBusiness(Business u);


	/**
	 *提供business类的模糊查询
	 */
public List<Business> queryBusinessFilter(@Param("page") int page, @Param("name") String name);


	/**
	 *返回符合该模糊查询的business列表数量
	 */
public int getAllFilter(String name);


	/**
	 *删除指定id的business类
	 */
public int deleteBusiness(int id);
}